﻿using System.ComponentModel;

namespace AutoCommunication.Enums
{
    /// <summary>
    /// 数据类型
    /// </summary>
    public enum DataTypeEnum
    {
        /// <summary>
        /// 未定义
        /// </summary>
        [Description("未定义")]
        None = 0,

        /// <summary>
        /// Bool
        /// </summary>
        [Description("Bool")]
        Bool = 1,

        /// <summary>
        /// Byte
        /// </summary>
        [Description("Byte")]
        Byte = 2,

        /// <summary>
        /// Int16
        /// </summary>
        [Description("Int16")]
        Int16 = 3,

        /// <summary>
        /// UInt16
        /// </summary>
        [Description("UInt16")]
        UInt16 = 4,

        /// <summary>
        /// Int32
        /// </summary>
        [Description("Int32")]
        Int32 = 5,

        /// <summary>
        /// UInt32
        /// </summary>
        [Description("UInt32")]
        UInt32 = 6,

        /// <summary>
        /// Int64
        /// </summary>
        [Description("Int64")]
        Int64 = 7,

        /// <summary>
        /// UInt64
        /// </summary>
        [Description("UInt64")]
        UInt64 = 8,

        /// <summary>
        /// Float
        /// </summary>
        [Description("Float")]
        Float = 9,

        /// <summary>
        /// Double
        /// </summary>
        [Description("Double")]
        Double = 10,

        /// <summary>
        /// 字符串
        /// </summary>
        [Description("字符串")]
        String = 11,

        /// <summary>
        /// 双字符串,因为普通的编码关系,一个汉字需要两个字节,西门子中,汉字要这个才能没差别
        /// </summary>
        [Description("双字符串,因为普通的编码关系,一个汉字需要两个字节,西门子中,汉字要这个才能没差别")]
        Wstring = 12,

        /// <summary>
        /// 自定义的数据格式,为了以后进阶读取对象做准备
        /// </summary>
        [Description("自定义的数据格式")]
        Custom
    }
}